/**
 * Author: xing
 * Date: 2016.3.17
 * 该文件的作用在于显示或者隐藏文件后缀用的
 */

var shell = new ActiveXObject('WScript.Shell');
var path = 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Advanced\\';
k = shell.regread(path + 'HideFileExt');
// WScript.Echo(k);

if(k==0){
	shell.regwrite(path + 'HideFileExt', 1, 'REG_DWORD');
}else{
	shell.regwrite(path + 'HideFileExt', 0, 'REG_DWORD');
}

shell.SendKeys('{f5}+{f10}e');